/* 主题变量定义 - 科技风格配色 */
:root {
  --bg-app: #f0f4f8;
  --text-primary: #303133;
  --text-secondary: #606266;
  --text-muted: #909399;
  --panel-bg: rgba(255, 255, 255, 0.9);
  --panel-subtle: rgba(255, 255, 255, 0.5);
  --panel-weak: rgba(245, 247, 250, 1);
  --border-color: rgba(228, 232, 236, 0.8);
  --card-bg: #ffffff;
  --shadow-weak: rgba(0, 0, 0, 0.05);
  --accent-blue: #409EFF;
  --accent-blue-light: #66b1ff;
  --accent-blue-dark: #337ecc;
}

[data-theme="dark"] {
  --bg-app: #0a0d14;
  --text-primary: #e8eaed;
  --text-secondary: #b8babf;
  --text-muted: #80868b;
  --panel-bg: rgba(32, 33, 36, 0.95);
  --panel-subtle: rgba(32, 33, 36, 0.7);
  --panel-weak: #1f2023;
  --border-color: rgba(95, 99, 104, 0.4);
  --card-bg: #202124;
  --shadow-weak: rgba(0, 0, 0, 0.5);
  --accent-blue: #8ab4f8;
  --accent-blue-light: #aecbfa;
  --accent-blue-dark: #5f97f7;
  --neon-blue: #00d4ff;
  --neon-cyan: #00ffff;
  --tech-glow: rgba(0, 212, 255, 0.6);
}

/* LED数字字体定义 */
@font-face {
  font-family: 'LED16Segment';
  src: url('./ledcounter7-0wj4g.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
  background-color: var(--bg-app);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

.ipad-container {
  max-width: 1024px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--bg-app) 0%, #d7e3f0 100%);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow-weak);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* 顶部导航栏样式 */
.nav-tabs {
  display: flex;
  background: var(--panel-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 0;
  position: relative;
  z-index: 20;
}

.nav-tabs::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-blue-light), #1abc9c);
  z-index: 1;
}

.nav-tab {
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  flex: 1;
  text-decoration: none;
}

.nav-tab.active {
  color: var(--accent-blue);
  font-weight: 600;
}

.nav-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-blue);
  border-radius: 3px 3px 0 0;
}

.nav-tab-icon {
  margin-right: 8px;
  font-size: 18px;
  vertical-align: middle;
}

/* 系统标题样式 */
.system-title {
  text-align: center;
  padding: 24px;
  position: relative;
  background: var(--panel-subtle);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.title-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

.subtitle {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.main-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  position: relative;
  padding: 0 15px;
}

.main-title::before,
.main-title::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-blue), rgba(138, 180, 248, 0));
  transform: translateY(-50%);
}

.main-title::before {
  left: -20px;
}

.main-title::after {
  right: -20px;
  background: linear-gradient(90deg, rgba(138, 180, 248, 0), var(--accent-blue));
}

/* 主体内容 */
.main-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 数字字体应用 - 所有涉及数字的元素 */
.final-score-value,
.time-value,
.penalty-value,
.final-score,
.el-input-number,
.el-pagination {
  font-family: 'LED16Segment', monospace !important;
  font-weight: normal;
  letter-spacing: 1px;
}

/* 表格中的数字列 */
.records-table td[data-type="number"],
.el-table__row td[data-type="number"] {
  font-family: 'LED16Segment', monospace !important;
  font-weight: normal;
  letter-spacing: 1px;
}

/* 时间显示专用LED字体 */
.time-display,
.timer-display,
.countdown-display {
  font-family: 'LED16Segment', monospace !important;
  font-size: 2.5em;
  font-weight: normal;
  color: var(--neon-blue);
  text-shadow: 0 0 10px var(--neon-blue);
  letter-spacing: 2px;
}

/* 分数显示LED字体 */
.score-display,
.result-display {
  font-family: 'LED16Segment', monospace !important;
  font-size: 2em;
  font-weight: normal;
  color: var(--neon-blue);
  text-shadow: 0 0 8px var(--neon-blue);
  letter-spacing: 1.5px;
}

/* 数据卡片数值LED字体 */
[data-theme="dark"] .data-card .card-value {
  font-family: 'LED16Segment', monospace !important;
  font-size: 2.2em;
  font-weight: normal;
  color: var(--text-primary);
  letter-spacing: 1px;
}

/* 深色主题下数字发光效果 */
[data-theme="dark"] .time-display,
[data-theme="dark"] .timer-display,
[data-theme="dark"] .countdown-display {
  color: var(--neon-blue);
  text-shadow: 
    0 0 10px var(--neon-blue),
    0 0 20px var(--neon-blue),
    0 0 30px var(--neon-blue);
  animation: neon-pulse 2s ease-in-out infinite alternate;
}

[data-theme="dark"] .score-display,
[data-theme="dark"] .result-display {
  color: var(--neon-blue);
  text-shadow: 
    0 0 8px var(--neon-blue),
    0 0 16px var(--neon-blue),
    0 0 24px var(--neon-blue);
}

[data-theme="dark"] .data-card .card-value {
  color: var(--neon-blue);
  text-shadow: 0 0 5px var(--neon-blue);
}

/* 响应式设计 */
@media (max-width: 1180px) {
  .ipad-container {
    border-radius: 0;
  }
}

@media (max-width: 768px) {
  .nav-tab {
    padding: 12px;
  }

  .nav-tab-text {
    display: none;
  }

  .system-title {
    padding: 12px;
  }

  .main-title {
    font-size: 20px;
  }

  .subtitle {
    font-size: 12px;
  }
  
  /* 移动端LED字体调整 */
  .time-display,
  .timer-display,
  .countdown-display {
    font-size: 2em;
    letter-spacing: 1px;
  }
  
  .score-display,
  .result-display {
    font-size: 1.5em;
    letter-spacing: 1px;
  }
  
  .data-card .card-value {
    font-size: 1.8em;
  }
}

/* 深色主题覆盖 - 科技风格增强 */
[data-theme="dark"] body {
  background-color: var(--bg-app);
  color: var(--text-primary);
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(138, 180, 248, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(0, 255, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 90% 90%, rgba(0, 212, 255, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 10% 10%, rgba(138, 180, 248, 0.06) 0%, transparent 50%);
  position: relative;
}

[data-theme="dark"] body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(90deg, transparent 98%, rgba(0, 212, 255, 0.1) 100%),
    linear-gradient(0deg, transparent 98%, rgba(0, 212, 255, 0.1) 100%);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.3;
  animation: grid-move 20s linear infinite;
}

[data-theme="dark"] .ipad-container {
  background: linear-gradient(135deg, var(--bg-app) 0%, #1a1d26 100%);
  box-shadow: 0 10px 30px var(--shadow-weak);
  position: relative;
}

[data-theme="dark"] .ipad-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(45deg, transparent 30%, rgba(0, 212, 255, 0.03) 50%, transparent 70%),
    linear-gradient(-45deg, transparent 30%, rgba(138, 180, 248, 0.03) 50%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

[data-theme="dark"] .nav-tabs {
  background: var(--panel-bg);
  border-bottom-color: var(--border-color);
  position: relative;
}

[data-theme="dark"] .nav-tabs::before {
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-cyan), #00d4ff);
  box-shadow: 
    0 0 10px rgba(0, 212, 255, 0.5),
    0 0 20px rgba(0, 212, 255, 0.3),
    0 0 30px rgba(0, 212, 255, 0.1);
  animation: neon-pulse 2s ease-in-out infinite alternate;
}

[data-theme="dark"] .nav-tab.active {
  color: var(--neon-blue);
  text-shadow: 0 0 8px rgba(0, 212, 255, 0.6);
}

[data-theme="dark"] .nav-tab.active::after {
  background: var(--neon-blue);
  box-shadow: 0 0 8px var(--neon-blue);
}

[data-theme="dark"] .system-title {
  background: var(--panel-subtle);
  border-bottom-color: var(--border-color);
  position: relative;
}

[data-theme="dark"] .system-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
  box-shadow: 0 0 8px var(--neon-blue);
}

[data-theme="dark"] .main-title::before,
[data-theme="dark"] .main-title::after {
  background: linear-gradient(90deg, var(--neon-blue), rgba(0, 212, 255, 0));
  box-shadow: 0 0 8px var(--neon-blue);
}

[data-theme="dark"] .main-title::after {
  background: linear-gradient(90deg, rgba(0, 212, 255, 0), var(--neon-blue));
  box-shadow: 0 0 8px var(--neon-blue);
}

/* 常用卡片与面板 - 科技风格深色增强 */
[data-theme="dark"] .result-section h3 {
  font-size: 26px !important;
  color: white !important;
}

[data-theme="dark"] .data-card,
[data-theme="dark"] .final-result-text,
[data-theme="dark"] .records-section,
[data-theme="dark"] .video-player-section,
[data-theme="dark"] .video-list-section {
  background: var(--card-bg) !important;
  box-shadow: 
    0 8px 20px var(--shadow-weak),
    0 0 0 1px rgba(0, 212, 255, 0.1) !important;
  border: 1px solid var(--border-color) !important;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

[data-theme="dark"] .data-card:hover,
[data-theme="dark"] .final-result-text:hover,
[data-theme="dark"] .records-section:hover,
[data-theme="dark"] .video-player-section:hover,
[data-theme="dark"] .video-list-section:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 12px 30px var(--shadow-weak),
    0 0 0 1px rgba(0, 212, 255, 0.2) !important,
    0 0 20px rgba(0, 212, 255, 0.1) !important;
}

[data-theme="dark"] .data-card::before,
[data-theme="dark"] .final-result-text::before,
[data-theme="dark"] .records-section::before,
[data-theme="dark"] .video-player-section::before,
[data-theme="dark"] .video-list-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-cyan), var(--neon-blue));
  box-shadow: 0 0 8px var(--neon-blue);
}

[data-theme="dark"] .player-header,
[data-theme="dark"] .list-header {
  background: rgba(32, 33, 36, 0.9) !important;
  border-bottom: 1px solid var(--border-color) !important;
  position: relative;
}

[data-theme="dark"] .player-header::after,
[data-theme="dark"] .list-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
  box-shadow: 0 0 6px var(--neon-blue);
}

[data-theme="dark"] .video-info-panel,
[data-theme="dark"] .record-controls {
  background: #1a1d26 !important;
  border-color: var(--border-color) !important;
}

[data-theme="dark"] .records-table th,
[data-theme="dark"] .records-table td {
  color: var(--text-secondary) !important;
}

[data-theme="dark"] .records-table .el-table__header {
  background-color: #1a1d26 !important;
}

/* 科技风格特殊效果增强 */
[data-theme="dark"] .status-dot {
  background-color: var(--neon-blue);
  box-shadow: 
    0 0 8px var(--neon-blue),
    0 0 16px var(--neon-blue),
    0 0 24px var(--neon-blue);
  animation: neon-pulse 1.5s ease-in-out infinite alternate;
}

[data-theme="dark"] .connection-status {
  background: rgba(32, 33, 36, 0.9);
  color: var(--text-secondary);
  border-color: var(--border-color);
  box-shadow: 
    0 2px 8px var(--shadow-weak),
    0 0 0 1px rgba(0, 212, 255, 0.2);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .connection-status::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
  animation: tech-scan 3s linear infinite;
}

/* 科技动画效果 */
@keyframes neon-pulse {
  0% {
    box-shadow: 
      0 0 8px var(--neon-blue),
      0 0 16px var(--neon-blue),
      0 0 24px var(--neon-blue);
  }
  100% {
    box-shadow: 
      0 0 12px var(--neon-blue),
      0 0 24px var(--neon-blue),
      0 0 36px var(--neon-blue);
  }
}

@keyframes tech-scan {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

@keyframes grid-move {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(30px, 30px);
  }
}

/* 科技线条装饰 */
[data-theme="dark"] .ipad-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(90deg, transparent 98%, rgba(0, 212, 255, 0.3) 100%),
    linear-gradient(0deg, transparent 98%, rgba(0, 212, 255, 0.3) 100%);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.3;
}

/* 按钮科技效果 */
[data-theme="dark"] .el-button {
  border-color: rgba(0, 212, 255, 0.3) !important;
  transition: all 0.3s ease;
}

[data-theme="dark"] .el-button:hover {
  border-color: var(--neon-blue) !important;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.4) !important;
}

[data-theme="dark"] .el-button:active {
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.6) !important;
}

/* 输入框科技效果 */
[data-theme="dark"] .el-input__inner {
  border-color: rgba(0, 212, 255, 0.3) !important;
  background: rgba(32, 33, 36, 0.8) !important;
  color: var(--text-primary) !important;
}

[data-theme="dark"] .el-input__inner:focus {
  border-color: var(--neon-blue) !important;
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.3) !important;
}

/* 表格科技效果 */
[data-theme="dark"] .el-table {
  background: transparent !important;
  color: var(--text-primary) !important;
}

[data-theme="dark"] .el-table th {
  background: rgba(0, 212, 255, 0.1) !important;
  border-bottom: 1px solid rgba(0, 212, 255, 0.3) !important;
}

[data-theme="dark"] .el-table td {
  border-bottom: 1px solid rgba(0, 212, 255, 0.1) !important;
}

[data-theme="dark"] .el-table--striped .el-table__body tr.el-table__row--striped td {
  background: rgba(0, 212, 255, 0.05) !important;
} 